import Vue from 'vue'

import elementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import VueUeditorWrap from 'vue-ueditor-wrap'

import App from './App.vue'
import './style/common.scss'
import router from './router'
import store from './store'
import * as filters from './filters'

Vue.component('vue-ueditor-wrap', VueUeditorWrap)

Vue.use(elementUI, { size: 'small', zIndex: 3000 })

// register global utility filters
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
